package com.sinoglobal.shakeprize.bean;

import android.annotation.SuppressLint;
import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author temulu
 * @createdate 2015-8-30下午3:25:19
 * @Description 奖品列表item
 */
@SuppressLint("ParcelCreator")
public class PrizeListParamerItem implements Parcelable {
	public int accepttype;
	public long createDate;
	public String name;
	public String permissionCode;
	public int pickstatus;
	public int prizeid;
	public String prizepic;
	public String productcode;
	public int roundid;
	public int userid;
	public int userprizeid;
	@Override
	public int describeContents() {
		return 0;
	}
	@Override
	public void writeToParcel(Parcel out, int flags) {
		out.writeLong(createDate);
		out.writeString(name);
		out.writeString(permissionCode);
		out.writeString(prizepic);
		out.writeString(productcode);
		out.writeInt(pickstatus);
		out.writeInt(prizeid);
		out.writeInt(roundid);
		out.writeInt(userid);
		out.writeInt(userprizeid);
	}
	
	public static final Parcelable.Creator<PrizeListParamerItem> CREATOR=new Creator<PrizeListParamerItem>() {
		
		@Override
		public PrizeListParamerItem[] newArray(int paramInt) {
			
			return new PrizeListParamerItem[paramInt];
		}
		
		@Override
		public PrizeListParamerItem createFromParcel(Parcel paramParcel) {
			PrizeListParamerItem item=new PrizeListParamerItem();
			item.createDate=paramParcel.readLong();
			item.name=paramParcel.readString();
			item.permissionCode=paramParcel.readString();
			item.prizepic=paramParcel.readString();
			item.productcode=paramParcel.readString();
			item.pickstatus=paramParcel.readInt();
			item.prizeid=paramParcel.readInt();
			item.roundid=paramParcel.readInt();
			item.userid=paramParcel.readInt();
			item.userprizeid=paramParcel.readInt();
			return item;
		}
	};
}
